\hypertarget{classduye_1_1_byte_helper}{\section{duye\-:\-:Byte\-Helper Class Reference}
\label{classduye_1_1_byte_helper}\index{duye\-::\-Byte\-Helper@{duye\-::\-Byte\-Helper}}
}


string extend function  




{\ttfamily \#include $<$duye\-\_\-helper.\-h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static int8 $\ast$ \hyperlink{classduye_1_1_byte_helper_a648632024a1220a4a58dcafde606c838}{find\-Sub\-Bytes} (const int8 $\ast$data, const uint32 data\-Len, const int8 $\ast$sub, const uint32 sub\-Len)
\begin{DoxyCompactList}\small\item\em find sub byte array \end{DoxyCompactList}\item 
static int8 $\ast$ \hyperlink{classduye_1_1_byte_helper_a487bda2bb1d990af8684195f4338ca37}{find\-Byte} (const int8 $\ast$data, const uint32 data\-Len, const int8 byte)
\begin{DoxyCompactList}\small\item\em find byte \end{DoxyCompactList}\item 
static int8 $\ast$ \hyperlink{classduye_1_1_byte_helper_aaa962e9fb7c354454225a087d89ad88b}{find\-Byte\-R} (const int8 $\ast$data, const uint32 data\-Len, const int8 byte)
\begin{DoxyCompactList}\small\item\em reverse find byte \end{DoxyCompactList}\item 
static std\-::string \hyperlink{classduye_1_1_byte_helper_aa0972efa3a3671d4e29fde26b7356871}{to\-Hex\-Str} (const int8 $\ast$data, const uint32 data\-Len)
\begin{DoxyCompactList}\small\item\em convert byte array to hex format string \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
string extend function 

\begin{DoxyNote}{Note}

\end{DoxyNote}


\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_byte_helper_a487bda2bb1d990af8684195f4338ca37}{\index{duye\-::\-Byte\-Helper@{duye\-::\-Byte\-Helper}!find\-Byte@{find\-Byte}}
\index{find\-Byte@{find\-Byte}!duye::ByteHelper@{duye\-::\-Byte\-Helper}}
\subsubsection[{find\-Byte}]{\setlength{\rightskip}{0pt plus 5cm}static int8$\ast$ duye\-::\-Byte\-Helper\-::find\-Byte (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{data, }
\item[{const uint32}]{data\-Len, }
\item[{const int8}]{byte}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_byte_helper_a487bda2bb1d990af8684195f4338ca37}


find byte 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em data} & \-: input data \\
\hline
\mbox{\tt in}  & {\em data\-Len} & \-: input data length \\
\hline
\mbox{\tt in}  & {\em sub} & \-: sub byte array \\
\hline
\mbox{\tt in}  & {\em sub\-Len} & \-: sub byte array size \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
start position, N\-U\-L\-L indicate don't found 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_byte_helper_aaa962e9fb7c354454225a087d89ad88b}{\index{duye\-::\-Byte\-Helper@{duye\-::\-Byte\-Helper}!find\-Byte\-R@{find\-Byte\-R}}
\index{find\-Byte\-R@{find\-Byte\-R}!duye::ByteHelper@{duye\-::\-Byte\-Helper}}
\subsubsection[{find\-Byte\-R}]{\setlength{\rightskip}{0pt plus 5cm}static int8$\ast$ duye\-::\-Byte\-Helper\-::find\-Byte\-R (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{data, }
\item[{const uint32}]{data\-Len, }
\item[{const int8}]{byte}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_byte_helper_aaa962e9fb7c354454225a087d89ad88b}


reverse find byte 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em data} & \-: input data \\
\hline
\mbox{\tt in}  & {\em data\-Len} & \-: input data length \\
\hline
\mbox{\tt in}  & {\em sub} & \-: sub byte array \\
\hline
\mbox{\tt in}  & {\em sub\-Len} & \-: sub byte array size \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
start position, N\-U\-L\-L indicate don't found 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_byte_helper_a648632024a1220a4a58dcafde606c838}{\index{duye\-::\-Byte\-Helper@{duye\-::\-Byte\-Helper}!find\-Sub\-Bytes@{find\-Sub\-Bytes}}
\index{find\-Sub\-Bytes@{find\-Sub\-Bytes}!duye::ByteHelper@{duye\-::\-Byte\-Helper}}
\subsubsection[{find\-Sub\-Bytes}]{\setlength{\rightskip}{0pt plus 5cm}static int8$\ast$ duye\-::\-Byte\-Helper\-::find\-Sub\-Bytes (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{data, }
\item[{const uint32}]{data\-Len, }
\item[{const int8 $\ast$}]{sub, }
\item[{const uint32}]{sub\-Len}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_byte_helper_a648632024a1220a4a58dcafde606c838}


find sub byte array 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em data} & \-: input data \\
\hline
\mbox{\tt in}  & {\em data\-Len} & \-: input data length \\
\hline
\mbox{\tt in}  & {\em sub} & \-: sub byte array \\
\hline
\mbox{\tt in}  & {\em sub\-Len} & \-: sub byte array size \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
start position, N\-U\-L\-L indicate don't found 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_byte_helper_aa0972efa3a3671d4e29fde26b7356871}{\index{duye\-::\-Byte\-Helper@{duye\-::\-Byte\-Helper}!to\-Hex\-Str@{to\-Hex\-Str}}
\index{to\-Hex\-Str@{to\-Hex\-Str}!duye::ByteHelper@{duye\-::\-Byte\-Helper}}
\subsubsection[{to\-Hex\-Str}]{\setlength{\rightskip}{0pt plus 5cm}static std\-::string duye\-::\-Byte\-Helper\-::to\-Hex\-Str (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{data, }
\item[{const uint32}]{data\-Len}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_byte_helper_aa0972efa3a3671d4e29fde26b7356871}


convert byte array to hex format string 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em data} & \-: input data \\
\hline
\mbox{\tt in}  & {\em data\-Len} & \-: input data length \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
hex string 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/public/\hyperlink{duye__helper_8h}{duye\-\_\-helper.\-h}\end{DoxyCompactItemize}
